{# src/IFI/Symfony2Bundle/Resources/views/Default/baseArticle.html.twig #}

<article class="is-post is-post-excerpt">
	<header>
		<h2><a href="{{ path("article", {'idArticle': article.id }) }}">{{ article.titre }}</a></h2>
	</header>
	<aside class="info">
            <span class="date"><a href="{{ path("date", {"datePost": article.date|date('d-m-Y')}) }}"><span class="month">{{ article.date|date('M') }}</span> <span class="day">{{ article.date|date('d') }}</span><span class="year">, {{ article.date|date('y') }}</span></a></span>
		<ul class="stats">
			<li><a href="{{ path("auteur", {'loginAuteur': article.auteur.username }) }}">{{ article.auteur.prenom }}</a></li>
		</ul>
	</aside>
	<section>
		<p>
			{{ article.contenu }}
		</p>
	</section>
	<ul class="tags">
    {% for tag in article.tags %}
		<li><a href="{{ path("tags", {'tags': tag.nom }) }}">{{ tag.nom }}</a></li>
    {% endfor %}	
	</ul>
</article>